import VueRouter from 'vue-router'

import HomeContainer from './components/tabbar/HomeContainer.vue'
import Test from './components/tabbar/testExpress.vue'
import Icon from './components/tabbar/icon.vue'

var router = new VueRouter({
	routes: [ //配置路由规则
		{
			path:'/',
			redirect:'/home'
		},
		{
			path: '/home',
			component: HomeContainer
		},
		{
			path:'/test',
			component:Test
		},
		{
			path:'/icon',
			component:Icon
		}
	]
	// linkActiveClass: 'mui-active' //覆盖默认路由高亮的类，默认的类是router-link-active
})

// 把路由对象暴露出去
export default router